﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PQ.Common
{
   public class Helpers
    {
        /// <summary>
        /// 返回URL编码字符
        /// </summary>
        /// <param name="strIn">需要编码的内容</param>
        /// <param name="encoding">编码</param>
        /// <returns></returns>
        public static string StrConvUrlEncoding(string strIn, string encoding)
        {
            return System.Web.HttpUtility.UrlEncode(strIn, Encoding.GetEncoding(encoding));
        }
    }
}
